package com.shell.governor.authorization.service;

import com.shell.bee.entity.mvc.RetMsg;
import com.shell.bee.persistence.service.PersistentService;
import com.shell.governor.authorization.po.PubResource;
import java.io.InputStream;
import java.util.List;

public abstract interface PubResourceService extends PersistentService<PubResource> {
	public abstract int saveOrUpdateResource(PubResource paramPubResource);

	public abstract List<PubResource> selectResourceTree(PubResource paramPubResource);

	public abstract PubResource findResourceByResId(String paramString);

	public abstract int updateResourceStateWithCascade(String paramString1, String paramString2);

	public abstract boolean checkCodeUnique(PubResource paramPubResource);

	public abstract InputStream genSql(String paramString) throws Exception;

	public abstract int deleteResourceWithCascade(PubResource paramPubResource);

	public abstract List<PubResource> selectResourceTree4Role(String paramString) throws Exception;

	public abstract List<PubResource> selectResourceTree4User(String paramString1, String paramString2,
			String paramString3, String paramString4) throws Exception;

	public abstract RetMsg authResourceToRole(String paramString1, String paramString2, String paramString3);

	public abstract RetMsg authResourceToUser(String paramString1, String paramString2, String paramString3,
			String paramString4);

	public abstract List<PubResource> selectAllResourceTree4User(String paramString1, String paramString2,
			String paramString3, String paramString4) throws Exception;
}